package com.ruoyi.system.domain.vo;

import com.ruoyi.system.domain.Goods;
import org.hibernate.validator.constraints.Length;

import javax.validation.constraints.NotEmpty;
import javax.validation.constraints.NotNull;
import java.util.List;

public class OrderInfo {
    private Long userId;

    @NotNull(message = "配送地址必选")
    private Long shopId;
    @NotNull(message = "配送地址必选")
    private Long totalAmount;
    @NotNull(message = "时间戳必填写")
    private Long timestamp;
    @NotEmpty(message = "签名必填")
    private String sign;
    @NotNull(message = "商品必填")
    private List<GoodsInfo> goodsList;
    private String remark;
    @NotEmpty(message = "收货人姓名必填")
    @Length(min = 2,max = 10,message = "收货人姓名长度[大于2并且小于10]")
    private String receivePerson;

    public String getReceivePerson() {
        return receivePerson;
    }

    public void setReceivePerson(String receivePerson) {
        this.receivePerson = receivePerson;
    }

    public String getRemark() {
        return remark;
    }

    public void setRemark(String remark) {
        this.remark = remark;
    }

    public Long getUserId() {
        return userId;
    }

    public void setUserId(Long userId) {
        this.userId = userId;
    }

    public Long getShopId() {
        return shopId;
    }

    public void setShopId(Long shopId) {
        this.shopId = shopId;
    }

    public Long getTotalAmount() {
        return totalAmount;
    }

    public void setTotalAmount(Long totalAmount) {
        this.totalAmount = totalAmount;
    }

    public Long getTimestamp() {
        return timestamp;
    }

    public void setTimestamp(Long timestamp) {
        this.timestamp = timestamp;
    }

    public String getSign() {
        return sign;
    }

    public void setSign(String sign) {
        this.sign = sign;
    }

    public List<GoodsInfo> getGoodsList() {
        return goodsList;
    }

    public void setGoodsList(List<GoodsInfo> goodsList) {
        this.goodsList = goodsList;
    }
}
